package cn.ibizlab.odoo.core.odoo_crm.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_crm.domain.Crm_merge_opportunity;
import cn.ibizlab.odoo.core.odoo_crm.filter.Crm_merge_opportunitySearchContext;

/**
 * 实体[Crm_merge_opportunity] 服务对象接口
 */

public interface ICrm_merge_opportunityService{
     void updateBatch(List<Crm_merge_opportunity> crm_merge_opportunitys, int batchSize) ;
     boolean update(Crm_merge_opportunity crm_merge_opportunity) ;
     boolean create(Crm_merge_opportunity crm_merge_opportunity) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     void createBatch(List<Crm_merge_opportunity> crm_merge_opportunitys, int batchSize) ;
     Crm_merge_opportunity get(Integer id) ;
     Crm_merge_opportunity get(Crm_merge_opportunity crm_merge_opportunity) ;

    /**
     * 查询集合 默认查询
     */
    Page<Crm_merge_opportunity> searchDefault(Crm_merge_opportunitySearchContext context) ;

    /**
     * 根据销售渠道查询
     */
     Page<Crm_merge_opportunity> selectByOdoo_team(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_merge_opportunity> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_merge_opportunity> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_merge_opportunity> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Crm_merge_opportunity convert2Domain(cn.ibizlab.odoo.core.client.model.Icrm_merge_opportunity model ,Crm_merge_opportunity domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Icrm_merge_opportunity convert2Model(Crm_merge_opportunity domain , cn.ibizlab.odoo.core.client.model.Icrm_merge_opportunity model);

}
